import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Fmovieshop from './components/FmovieShop.vue'
import Fnav from './components/Fnav.vue'
import notLogin from './components/my_notLogin.vue'
import details_movie from './components/details_movie.vue'
import Fcontent from './components/Fnav/Fcontent.vue'
import comingPlay from './components/Fnav/comingPlay.vue'

Vue.use(Router)
const routes = [
//	动态路由
//	{
//		path: "/details_movie/:id",
//		component: details_movie
//	},
	{
		path: "/details_movie",
		component: details_movie
	},

	{
		path: "/FmovieShop",
		component: Fmovieshop
	},

	{
		path: "/my_notLogin",
		component: notLogin
	},
	{
		path: "/Fnav",
		component: Fnav
	},
	
	{
		path: "/", //重定向
		redirect: "/home"
	},
	{
		path: "/home",
		component: Home,
		redirect:{name:'Fcontent'},
		//		定义子路由
		children: [{
				path: "Fcontent",
				name:"Fcontent",
				component: Fcontent,
				alias: ""
				

			},
			{
				path: "comingPlay",
				component: comingPlay
			}
		]
	}


	//	{
	//		name:"Fnav",
	//		path:"/Fnav",
	//		component:"Fnav"
	//	}

];
export default new Router({
	routes
})

//export default new Router({
//mode: 'history',
//base: process.env.BASE_URL,
//router-link-exact-active:"active",
//routes: [
//  {
//    path: '/',
//    name: 'home',
//    component: Home
//  },
//  {
//    path: '/about',
//    name: 'about',
//    // route level code-splitting
//    // this generates a separate chunk (about.[hash].js) for this route
//    // which is lazy-loaded when the route is visited.
//    component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
//  }
//]
//})